<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>获取user对象数据:<br>
    id:<span th:text="${user.id}"></span><br>
    username:<span th:text="${user.username}"></span><br>
    password:<span th:text="${user.password}"></span>
    </h2>
</body>
</html>